package org.edu.zzu.health_report.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.edu.zzu.health_report.domain.Record;
import org.edu.zzu.health_report.service.RecordService;
import org.edu.zzu.health_report.mapper.RecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 高朋
* @description 针对表【record(打卡记录表)】的数据库操作Service实现
* @createDate 2021-11-08 16:18:21
*/
@Service
public class RecordServiceImpl extends ServiceImpl<RecordMapper, Record>
    implements RecordService{

    @Autowired
    private RecordMapper recordMapper;

    @Override
    public Record getByDate(String userId, Long date) {
        return recordMapper.selectByDate(userId,date);
    }
}




